﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AvansRS.Domain;
using AvansRS.Domain.DataInterface;
using StructureMap;

namespace AvansRS.Web.Util
{
    public class DomainHelper
    {
        public static object GetOccupant(Registration registration)
        {
            IPersonRepository personRepository = ObjectFactory.GetInstance<IPersonRepository>();
            IGroupRepository groupRepository = ObjectFactory.GetInstance<IGroupRepository>();

            object returnVal = personRepository.FindByEntity(registration.Entity.ID);

            return returnVal;
        }
    }
}
